package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/hello")
public class HelloWorld {

    @GetMapping(value = "/world")
    public String hello() throws InterruptedException {
        System.out.println("receive request");
        Thread.sleep(8000);
        System.out.println("before response");
        return "ok";
    }
}
